package com.longnows.appserver.model;

import com.longnows.appserver.utils.MapAndJson;
import lombok.*;

import javax.persistence.*;
import java.util.Map;


@Entity
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User extends BaseEntity{

    @Id
    private long id;

    private String openid;

    private String nickname;

    private String email;

    private String mobile;

    private String password;


    private long unifyUid;

    @Convert(converter = MapAndJson.class)
    private Map<String, Object> wxProfile;

}
